// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import './assets/style/reset.css'
Vue.config.productionTip = false
import Highcharts from 'highcharts/highstock';
import HighchartsMore from 'highcharts/highcharts-more';
import HighchartsDrilldown from 'highcharts/modules/drilldown';
import Highcharts3D from 'highcharts/highcharts-3d';

import {
  loading,
  borderBox13,
  borderBox12,
  digitalFlop,
  capsuleChart,
  borderBox8,
  scrollRankingBoard,
} from '@jiaminghi/data-view'
import { Radio, Button, RadioGroup } from 'element-ui'
import Echart from './components/echart/index.vue'
import ItemWrap from './components/item-wrap/item-wrap.vue'
import Message from './components/message/message.vue'
import Reacquire from './components/reacquire/reacquire.vue'
import Messages from './components/message/message'
import 'vue-easytable/libs/theme-default/index.css'
import '@/assets/css/public.scss'
import '@/assets/css/index.scss'

HighchartsMore(Highcharts)
HighchartsDrilldown(Highcharts);
Highcharts3D(Highcharts);

import echarts from 'echarts'
import 'echarts-gl'
Vue.prototype.$echarts = echarts

// 自定义组件
Vue.component('Echart', Echart)
Vue.component('ItemWrap', ItemWrap)
Vue.component('Message', Message)
Vue.component('Reacquire', Reacquire)
Vue.prototype.$Message = Messages
// element组件
Vue.use(Radio)
Vue.use(Button)
Vue.use(RadioGroup)

// datav组件
Vue.use(loading)
Vue.use(borderBox13)
Vue.use(borderBox8)
Vue.use(digitalFlop)
Vue.use(capsuleChart)
Vue.use(borderBox12)

Vue.use(scrollRankingBoard)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
